package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;
import com.hitrust.gs.service.GSBaseBean;
/**
 * GSUserMenuInfoBean 2009-03-12
 */
public class GSUserMenuInfoBean implements GSBaseBean{
    private String id;
    private String user_id;
    private String user_code;
    private String menu_id;
    private int menu_code;
    /**
    * @return the menu_code
    */
    public int getMenu_code(){
        return this.menu_code;
    }
    /**
    * @param aMenu_code the menu_code to set
    */
    public void setMenu_code(int aMenu_code){
        this.menu_code = aMenu_code;
    }
    /**
    * @return the user_id
    */
    public String getUser_id(){
        return this.user_id;
    }
    /**
    * @param aUser_id the user_id to set
    */
    public void setUser_id(String aUser_id){
        this.user_id = aUser_id;
    }
    /**
    * @return the user_code
    */
    public String getUser_code(){
        return this.user_code;
    }
    /**
    * @param aUser_code the user_code to set
    */
    public void setUser_code(String aUser_code){
        this.user_code = aUser_code;
    }
    /**
    * @return the menu_id
    */
    public String getMenu_id(){
        return this.menu_id;
    }
    /**
    * @param aMenu_id the menu_id to set
    */
    public void setMenu_id(String aMenu_id){
        this.menu_id = aMenu_id;
    }
    /**
    * @return the id
    */
    public String getId(){
        return this.id;
    }
    /**
    * @param aId the id to set
    */
    public void setId(String aId){
        this.id = aId;
    }
    public Object process(ResultSet aResultSet) throws SQLException {
        GSUserMenuInfoBean tGSUserMenuInfoBean=new GSUserMenuInfoBean();
        tGSUserMenuInfoBean.menu_code = aResultSet.getInt("menu_code");
        tGSUserMenuInfoBean.user_id = aResultSet.getString("user_id")==null?"":aResultSet.getString("user_id").trim();
        tGSUserMenuInfoBean.user_code = aResultSet.getString("user_code")==null?"":aResultSet.getString("user_code").trim();
        tGSUserMenuInfoBean.menu_id = aResultSet.getString("menu_id")==null?"":aResultSet.getString("menu_id").trim();
        tGSUserMenuInfoBean.id = aResultSet.getString("id")==null?"":aResultSet.getString("id").trim();
        return tGSUserMenuInfoBean;
    }
}